//
//  NSFormatter+Extension.m
//  EaseMob
//
//  Created by 王方伟 on 16/7/27.
//  Copyright © 2016年 wfw. All rights reserved.
//

#import "NSFormatter+Extension.h"

@implementation NSFormatter (Extension)
+ (instancetype)dateFormatter{
    return [[self alloc] init];
}

+ (instancetype)dateFormatterWithFormat:(NSString *)dateFormat{
    NSDateFormatter *dateFormatter = [NSDateFormatter dateFormatter];
    dateFormatter.dateFormat = dateFormat;
    return dateFormatter;
}

+ (instancetype)defaultDateFormatter{
    return [self dateFormatterWithFormat:@"yyyy-MM-dd HH:mm:ss"];
}
@end
